Release 10.1A: OpenEdge Development:
Progress Dynamics Basic Development


Assigning objects to the container

Again, the container can be for a window (Page 0), or for a page of a tab folder, or it can be appropriate for both. Typically, most of the objects you place in the layout will be template objects, to be replaced by specific objects of that type when you build windows and pages from the layouts. The standard exceptions to this are toolbar objects and folder objects. You will likely select a specific named toolbar type (or possibly more than one) as a fixed component of many types of containers.

Object instance details

The section is made up of four distinct toolsets. The first is the object instances details where typical IO functions are supported and the current object’s are edited, as shown in Figure 8–7.

Figure 8–7: Object instances details

The IO buttons on the Object Instance editor are, in order:

Layout grid

The layout grid is central to managing information of the object instances. It displays all the objects per page in their current positions, and the highlighted object’s details are displayed alongside in the details section.

Figure 8–8 shows the layout grid.

Figure 8–8: Layout grid

Pages of the layout grid

The first tab is the container itself, the ‘Main Page’ or ‘Page0’. Selecting a tab displays the objects on that page, both visual and nonvisual, depending on the view (icon) selected. The exact layout of these objects is represented in the grid.

Moving an object to a different position/page

This is achieved by simply dragging and dropping objects on their desired position, provided it is available; indicated by a white cell.

A few considerations to bear in mind when placing an object:

Advanced layout grid features

These are made available by right-clicking on the Grid to invoke a pop-up menu, as shown in Figure 8–9.

Figure 8–9: Advanced layout grid features

The Advanced Features are as follows:

Object types

The two icons shown in Figure 8–10 indicate whether the objects for a page being viewed are visual or non-visual in nature courtesy of the presence of a red check mark on either. Typically, nonvisual objects are data source objects.

Figure 8–10: Object type selectors

Add Quick-Link tool

The Add Quick Link tool, as shown in Figure 8–11, enables developers to quickly link objects together, even objects that exist on different pages. This works effectively thanks to the visual nature of the layout in conjunction with the drag-and-drop functionality.

Figure 8–11: Add Quick-Link tool

Using the Add Quick-Link tool

The Add Quick-Link tool is the easiest way to add a link.

To add a quick link:

  1. Select the object to be used as the source. Drag and drop it out of the grid onto the source area. Alternatively, use the pop-up menu and select the appropriate option on the layout grid.
  2. Select the object to be used as the target. Drag and drop it out of the grid onto the target area. Alternatively, use the pop-up menu and select the appropriate option on the layout grid.
  3. Select a valid link type.
  4. Click Save.

Considerations when using the Add Quick-Link tool:

Adding an object

The Container Build has a grid for placing objects.

To select an object to add to the container:

  1. On the Object Instance region of the Container Builder, select the Add button. The layout grid shows all the available cells where the object can be placed, as shown:
  2. Complete the necessary fields:
    • Object lookup — Select the object to be placed.
    • Name — The instance name of the object, defaults to the actual object name.
    • Description — Defaults to the short description of the object.
  3. Complete the optional fields (only available for visual objects):
    • Resize horizontal/vertical — Gives you the option of allowing an object to dynamically resize on either plane at run time.
    • Justification — Allows you to define the alignment of every object.
  4. Select the relative position of the object by clicking in any one of the available cells, indicated by a white background in contrast to the chosen background color.
  5. Click Save.

Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095